# coding:utf-8

# 1 书写一个父类
class XiaomuFather(object):
    def talk(self):
        print('小慕的爸爸说了一句话')

# 2 书写一个子类，并际承一个父类
class XiaomuBrother(XiaomuFather):
    def run(self):
        print('小慕哥哥在奔跑着。。')
    def talk(self):
        print('小慕哥哥在说话..')

if __name__=='__main__':
    xiaomu_brother=XiaomuBrother()
    xiaomu_brother.talk()
    father = XiaomuFather()
    father.talk()
